//
//  SNUtils.h
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/4.
//  Copyright © 2016年 stone. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SNUtils : NSObject
+ (instancetype)sharedInstance;
/** alertView */
+ (void)alertViewWithViewController:(UIViewController *)viewController message:(NSString *)message confirmBlock:(void(^)())confirmBlock;
/** 肥料含量 */
+ (NSString *)getFertContentNameWithFertTypes:(NSString *)fertTypes fertContent:(NSString *)fertContent;
/** 过滤地址 */
+ (NSString *)filterAddress:(NSString *)address;
/** 变态的获取图片 */
+ (void)getImageWithURLString:(NSString *)URLString imageView:(UIImageView *)imageView;
/** url md5 */
+ (NSString *)cachedFileNameForKey:(NSString *)key;
#pragma mark - 获取UUID
+ (NSString *)calculateUUID;
/** 导航条 透明 & 底部黑线去除 */
+ (void)configNavigationStyleWithViewController:(UIViewController *)viewController;
+ (UIView *)testViewWithFrame:(CGRect)frame parentView:(UIView *)parentView;
+ (NSString *)fileterWithString:(NSString *)string;
+ (CGSize)calculateTextSize:(UILabel *)label width:(CGFloat)width;
+ (void)pushView:(UIView *)pushView pushViewController:(__kindof UIViewController *)pushViewController;
+ (void)specialLabelWithstring:(NSString *)string keyString:(NSString *)keyString label:(UILabel *)label color:(UIColor *)color;
//sn_note:=========  ============================ stone 🐳 ===========/
/** 16进制(字符串形式) 返回 图片 */
+ (UIImage *)imageWithString:(NSString *)string;
/** 16进制返回颜色 */
+ (UIColor *)colorWithString:(NSString *)string;
/** 颜色 返回 图片 */
+ (UIImage *)imageWithColor:(UIColor *)color;
@end
